package com.xiaohai.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xiaohai.projo.Student;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaohai.projo.dto.StudentDto;
import org.apache.ibatis.annotations.Mapper;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author xiaohai
 * @since 2024-01-22
 */
@Mapper
public interface StudentMapper extends BaseMapper<Student> {

    boolean updateAccount(Student student);

    int updatePasswordByAccount(String account, String newPassword);

    Page<StudentDto> list(Page<StudentDto> page, String studentName, String majorName, String className, String year);

    Page<StudentDto> listByTea(Page<StudentDto> page, String studentName, String majorName, String account, String year);

    List<HashMap<String, Integer>> getMenWomen();

    List<HashMap<String, Integer>> list1();

    List<HashMap<String, Integer>> listByStu(String account, String name);


    List<HashMap<String, Integer>> listByEchartTea(String account, String name);
}
